import {RouteRecordRaw} from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/home',
        alias: '/index',
        name: 'home',
        component: () => import('@/views/Index.vue')
    },
    {
        path: '/video/:id',
        name: 'video',
        component: () => import('@/views/Play.vue')
    },
    {
        path: '/fond',
        name: 'fond',
        component: () => import('@/views/Fond.vue')
    },
    {
        path: '/history',
        name: 'history',
        component: () => import('@/views/History.vue')
    },
    {
        path: '/search',
        name: 'search',
        component: () => import('@/views/Search.vue')
    },
    {
        path: '/',
        redirect: '/home'
    }
]

export default routes